package com.yunji.product.mapper;

import cn.hutool.core.lang.Pair;
import com.github.yulichang.base.MPJBaseMapper;
import com.yunji.product.domain.ProductDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Project: yunji-coffee
 * @Package com.yunji.product.mapper
 * @FileName ProductMapper.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * @Company com
 * @Version 1.0
 * @Since JDK1.8.0_201
 * @CreateTime 2024-04-01 23:38:08
 * @Description 商品信息数据交互
 * @Modification History
 * Author					History Time			Version			Description
 * -------------------------------------------------------------------------------
 * HuaAo				2024-04-01 23:38:08		1.0				1.0
 */
public interface ProductMapper extends MPJBaseMapper<ProductDO> {

    @Select("select product_name `key`,album_pics `value` from product where del_flag = 0 and id = #{productId}")
    Pair<String, String> getProductNameAndPics(@Param("productId") Long productId);
}
